package com.bjpowernode;

import com.bjpowernode.ba02.Student;
import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MyTest02 {
   @Test
    public void test02(){
       String config="applicationContext.xml";
       ApplicationContext context=
               new ClassPathXmlApplicationContext(config);
       Student myStudent = (Student) context.getBean("myStudent02");
       System.out.println(myStudent);

   }
}
